package com.cfk.shopmail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cfk.common.utils.PageUtils;
import com.cfk.shopmail.product.entity.AttrGroupEntity;
import com.cfk.shopmail.product.vo.AttrGroupWithAttrsVo;
import com.cfk.shopmail.product.vo.SkuItemVo;
import com.cfk.shopmail.product.vo.SpuItemBaseAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author fengyaowen
 * @email 983050705@qq.com
 * @date 2021-11-12 22:27:02
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //按照对应三级分类进行分页查询
    PageUtils queryPageByCatelogId(Map<String, Object> params, Long catelogId);

    // 获取分类下所有分组&关联属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    //查出当前spu对应所有属性对应分组信息
    List<SpuItemBaseAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

